<div class="gap"></div>
<div class="gap"></div>
<section class="reports">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-primary">
                    <div class="panel-body text-center">
                        <h1 class="blue">Web Report 4</h1>
                        <h3>Complaint Data (Archived)</h3>
                        <h4>( As recorded by the National Anti ragging Help Line )</h4>
                        <h2 class="blue">From 17/04/2012 upto <?php echo date('Y-m-d'); ?></h2>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h3 class="panel-title">Overall Reports</h3>
                    </div>
                    <div class="panel-body">

                        <div class="Table" style="width: 100%;
overflow: auto;
display: inline-block;">
                            <div class="Heading">
                                <div class="Cell">
                                    <p>Complaint No</p>
                                </div>
                                <div class="Cell">
                                    <p>Name</p>
                                </div>
                                <div class="Cell">
                                    <p>Address</p>
                                </div>
                                <div class="Cell">
                                    <p>Contact No</p>
                                </div>
                                <div class="Cell">
                                    <p>College Name</p>
                                </div>
                                <div class="Cell">
                                    <p>College Contact</p>
                                </div>
                                <div class="Cell">
                                    <p>College Email</p>
                                </div>
                                
                                 <div class="Cell">
                                    <p>University Name</p>
                                </div>
                                <div class="Cell">
                                    <p>Complaint Date</p>
                                </div>
                                
                                <div class="Cell">
                                    <p>Complaint Details</p>
                                </div>
                                
                                
                                <div class="Cell">
                                    <p>State</p>
                                </div>
                                <div class="Cell">
                                    <p>Complaint Status</p>
                                </div>
                                <div class="Cell">
                                    <p>Status At CC</p>
                                </div>
                                <div class="Cell">
                                    <p>Comments</p>
                                </div>
                                
                                
                            </div>
                            <?php
                            $criteria = new CDbCriteria();
                            $criteria->order = 'Name asc'; //get count
                            $count = ComplaintMaster::model()->count($criteria);
                            $pages = new CPagination($count);
                            $pages->setPageSize(10);
                            $pages->applyLimit($criteria);
                            $result = ComplaintMaster::model()->findAll($criteria);
                            $dataProvider = new CArrayDataProvider($result);
                            $data = $dataProvider->getData();
                            foreach ($data as $i => $item)
                                Yii::app()->controller->renderPartial('arichivereport', array('index' => $i, 'data' => $item, 'widget' => $this, 'maxButtonCount' => 3));
                            ?>
                            <div class="gap"></div>


                        </div>
                        <?php
                        $this->widget('CLinkPager', array(
                            'header' => '',
                            'firstPageLabel' => '&lt;&lt;',
                            'prevPageLabel' => '&lt;',
                            'nextPageLabel' => '&gt;',
                            'lastPageLabel' => '&lt;&lt;',
                            'pages' => $pages,
                        ));
                        ?>

                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-danger">
                    <div class="panel-body">
                        <p>Total Complain Received : 1144</p>
                        <p>Complain Closed : 769</p>
                        <p>Complains Active In Call Centre : 28</p>
                        <p>Complains Active In Monitoring Agency : 4</p>
                        <p>Complains Active In Various Regulatory Authorities : 313</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<div class="gap"></div>
